Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Is there a way to access {SID} in email invitation?

  • adishardis
  • adishardis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #134768 by adishardis
I really need to have access to the survey ID in the invitation email.

What is the reason it's not provoided along with for example {SID}?

Take care
/Adam
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134779 by tpartner
I have no idea why that placeholder doesn't work in emails.

This is a total hack but try:
Code:
{stristr(str_replace('/sid/', '', stristr(SURVEYURL, '/sid/')), '/', 'true')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134798 by DenisChenu
It doesn't work in email ???

Must be fixed i think .....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • adishardis
  • adishardis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 weeks ago #134853 by adishardis
Yes, there are so many application areas where {SID} would be needed.

I can't seem to get the sid using your suggestion, the function returns an empty result. Maybe it has something to do with the fact that I'm using html mails, so the link {SURVEYURL} is a html string instead of barebone link?

Thank you though for your effort!

Any other ideas?

Cheers
/Adam
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134864 by DenisChenu
For the tpartner workaround , try but unsure
{stristr(str_replace('/sid/', '', stristr("@@SURVEYURL@@", '/sid/')), '/', 'true')}

To have SID : make a feature request : you'r right : it's a must have .

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • adishardis
  • adishardis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 weeks ago #134875 by adishardis
@@SURVEYURL@@ did not do the trick either :(

I've submitted a feature request so it may be added to this wonderful software! :)

/Adam
The topic has been locked.
More
8 years 2 weeks ago #135043 by first
Did tpartner hack worked?

Survey Designer and Programmer
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose